rem create binary for hello world example

rem delete old binaries
del bin\sprite.gba
del bin\sprite.elf

rem transform background into source code
gfx2gba -pbgPalette -fsrc -oimage-bg-data image-bg\background.bmp

rem transform welcome screen into source code
gfx2gba -pwelcomePalette -fsrc -oimage-bg-data image-bg\welcome.bmp

rem transform welcome screen into source code
gfx2gba -pcreditsPalette -fsrc -oimage-bg-data image-bg\credits-bg.bmp

rem transform win screen into source code
gfx2gba -pwinPalette -fsrc -oimage-bg-data image-bg\win.bmp

rem transform over screen into source code
gfx2gba -poverPalette -fsrc -oimage-bg-data image-bg\over.bmp

rem transform bitmap into source code
gfx2gba -t8 -fsrc -oimage-data image\*.bmp

rem compile example
gcc -O3 -w -o bin\sprite.elf src\sprite.c 

rem Transform binary in gba native format
objcopy -O binary bin\sprite.elf bin\sprite.gba